<html>
<head>
<title>添加部门</title>
{% include "systy.html" %}
</head>
<body>
{% ifnotequal username None%}
    {% ifequal userpermissions "运维经理" %}
        <div class="groupadd_div1">
            <form action="" method="post">
            <label>部门名：</label>{{ fr.name }} <button type="submit" class="btn btn-primary btn-xs"> 添 加 </button>
            </form>
        </div>

        <div class="groupadd_div2">
            <label>现有的部门：</label></br>
            <ul class="">
            {% for group in departments %}
        <li>{{ group }} <span><a class="btn btn-danger btn-xs" href="/departmentdel/{{ group.id }}.html" onClick="delcfm()">删除</a></span></li>
            {% endfor %}
            </ul>
        </div>
    {% else %}
        你无权添加职位！
    {% endifequal %}
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
</body>
</html>
